/*多行文本省略*/
.text-ellipsis--muti(@lines: 2) {
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: @lines;
  overflow: hidden;
}

.flex-center() {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-vertical-center(@height: auto) {
  display: flex;
  align-items: center;
  height: @height;
}

.flex-horizontal-center(@width) {
  display: flex;
  justify-content: center;
  width: @width;
}

.div--webkit--scrollbar(@color: #f7f7f7) {
  &::-webkit-scrollbar-track {
    border-radius: 3px;
    background-color: #f7f7f7;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: @color;
  }
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #f7f7f7;
  }
}
